<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<jsp:useBean id="dao" scope="page" class="oneroom.user.zip.zipcode" />
<%
	String zip_code3 = request.getParameter("zip_code3") == null ? "" : request.getParameter("zip_code3");
	String zip_code4 = request.getParameter("zip_code4") == null ? "" : request.getParameter("zip_code4");
	List zipcode4 = dao.getZipcode4(zip_code3);
%>
<select name="zipcode4" id="zipcode4" class="w100">
<option value="no">선택</option>
<%
for(int i = 0; i<zipcode4.size(); i++){ 
	String zipcode4Value = (String)zipcode4.get(i);
	if(zipcode4Value != null && !zipcode4Value.equals("")){
%>
<option value="<%=zipcode4Value %>"  <%if(zip_code4.equals(zipcode4Value)){out.print("selected='selected'");} %>><%=zipcode4Value %></option>
<%}} %>
</select>